package com.st.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.st.mapper.StTeachersMapper;
import com.st.domain.StTeachers;
import com.st.service.IStTeachersService;

/**
 * 讲师Service业务层处理
 *
 * @author zhw
 * @date 2024-10-24
 */
@Service
public class StTeachersServiceImpl extends ServiceImpl<StTeachersMapper, StTeachers> implements IStTeachersService {
    @Autowired
    private StTeachersMapper stTeachersMapper;

    /**
     * 查询讲师
     *
     * @param id 讲师主键
     * @return 讲师
     */
    @Override
    public StTeachers selectStTeachersById(Integer id) {
        return stTeachersMapper.selectStTeachersById(id);
    }

    /**
     * 查询讲师列表
     *
     * @param stTeachers 讲师
     * @return 讲师
     */
    @Override
    public List<StTeachers> selectStTeachersList(StTeachers stTeachers) {
        return stTeachersMapper.selectStTeachersList(stTeachers);
    }

    /**
     * 新增讲师
     *
     * @param stTeachers 讲师
     * @return 结果
     */
    @Override
    public int insertStTeachers(StTeachers stTeachers) {
            return stTeachersMapper.insertStTeachers(stTeachers);
    }

    /**
     * 修改讲师
     *
     * @param stTeachers 讲师
     * @return 结果
     */
    @Override
    public int updateStTeachers(StTeachers stTeachers) {
        return stTeachersMapper.updateStTeachers(stTeachers);
    }

    /**
     * 批量删除讲师
     *
     * @param ids 需要删除的讲师主键
     * @return 结果
     */
    @Override
    public int deleteStTeachersByIds(Integer[] ids) {
        return stTeachersMapper.deleteStTeachersByIds(ids);
    }

    /**
     * 删除讲师信息
     *
     * @param id 讲师主键
     * @return 结果
     */
    @Override
    public int deleteStTeachersById(Integer id) {
        return stTeachersMapper.deleteStTeachersById(id);
    }
}